﻿@model HomeViewModel

@{ var title = string.Format("{0}'s blogs", ViewBag.User.Name); }

@{
    ViewBag.Title = title;
	Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

@if (Model.Blogs.Any())
{
	using (Html.BeginTable())
	{
		<thead>
			<tr>
				<th>
					Title
				</th>
				<td>
				</td>
				<td>
				</td>
				<td>
				</td>
			</tr>
		</thead>
		<tbody>
			@foreach (var blog in Model.Blogs)
			{
				<tr>
					<td>
						@blog.Title
					</td>
					<td class="actions">
						Create new post
					</td>
					<td class="actions">
						Go to post list
					</td>
					<td class="actions">
						View blog
					</td>
				</tr>
			}
		</tbody>
	}
}